package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * @author luao
 * @date 2021/2/27 11:56 上午
 **/
@Data
@Entity
@Table(name = "video_consult_message")
public class VideoConsultMessage {

    /**
     * 文本--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_TEXT = 1;

    /**
     * 图片--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_IMAGE = 2;

    /**
     * 诊前病情--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_DISEASE = 3;

    /**
     * 诊前病例--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_CASE = 4;

    /**
     * 处方--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_RECOM = 5;

    /**
     * 病历--类型
     */
    public static final int VIDEO_CONSULT_TYPE_TO_DRCASE = 6;
    // 主键
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;
    /**
     * 视频咨询id
     */
    @Column(name = "video_consult_id")
    private Long videoConsultId;
    /**
     * 患者id
     */
    @Column(name = "patient_id")
    private Long patientId;

    /**
     * 就诊人id
     */
    @Column(name = "inquirer_id")
    private Long inquirerId;

    /**
     * 医生id
     */
    @Column(name = "doctor_id")
    private Long doctorId;

    /**
     * 内容
     */
    @Column(name = "content")
    private String content;
    /**
     * 类型1.文本;2.图片;3.诊前病情;4.诊前病历;5.处方;6.病历
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;
}
